package  
{
	import org.flixel.*;
	import org.flixel.plugin.photonstorm.FlxExtendedSprite;
	
	/**
	 * ...
	 * @author le-ray_y
	 */
	public class Upgrades extends FlxExtendedSprite 
	{
		private var isButton:Boolean;
		
		public var _costText:FlxText;
		
		public function Upgrades(posX:Number = 0, posY:Number = 0, SimpleGraphic:Class = null, _width:Number = 0, _height:Number = 0, animated:Boolean = false, skillLinkage:Number = 0, _isButton:Boolean = false, onClickCallback:Function = null) 
		{
			this.x = posX;
			this.y = posY;
			this.loadGraphic(SimpleGraphic, animated, false, _width, _height);
			
			this.isButton = _isButton;
			
			if (isButton)
			{
				this.enableMouseClicks(false);
				this.mousePressedCallback = onClickCallback;
			}
			
			this.exists = false;
			
			_costText = new FlxText(this.x + 25, this.y + 65, 30, "0");
		}
		
	}

}